package com.yeqiangwei.commons.mail;

import java.io.Serializable;

import javax.mail.Multipart;

public class MailEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6887001180212476967L;
	
	public String toString(){
		return new StringBuilder()
			.append("to = ").append(to)
			.append(", recipient = ").append(recipient)
			.append(", from = ").append(from)
			.append(", sender = ").append(sender)
			.toString();
	}

	/* 收件人地址 */
	private String to;

	/* 收件人 */
	private String recipient;

	/* 发件人名称 */
	private String sender;

	/* 发件人地址 */
	private String from;

	/* 邮件标题 */
	private String subject;

	/* 邮件内容 */
	private String text;

	private String htmlText;
	
	private Multipart multipart;

	
	public String getHtmlText() {
		return htmlText;
	}

	public void setHtmlText(String htmlText) {
		this.htmlText = htmlText;
	}

	public Multipart getMultipart() {
		return multipart;
	}

	public void setMultipart(Multipart multipart) {
		this.multipart = multipart;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public String getRecipient() {
		return recipient;
	}

	public void setRecipient(String recipient) {
		this.recipient = recipient;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

}
